package com.heima.apis.article;

import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author hlx
 * @date 2022/12/12 0012
 * @apiNote
 */
@FeignClient("leadnews-article")
public interface ArticleFeign {
    /**
     * 远程同步数据到app的文章数据表
     * @param dto
     * @return
     */
    @PostMapping("api/v1/article/save")
    public ResponseResult saveArticle(@RequestBody ArticleDto dto);

}
